import request from '@/utils/request'

// 查询岗位列表
export function listManufactor(query) {
  return request({
    url: '/his/manufactor/list',
    method: 'get',
    params: query
  })
}

// 查询岗位详细
export function getManufactor(manufactorId) {
  return request({
    url: '/his/manufactor/' + manufactorId,
    method: 'get'
  })
}

// 新增
export function addManufactor(data) {
  return request({
    url: '/his/manufactor',
    method: 'post',
    data: data
  })
}

// 修改
export function updateManufactor(data) {
  return request({
    url: '/his/manufactor',
    method: 'put',
    data: data
  })
}

// 删除
export function delManufactor(manufactorIds) {
  return request({
    url: '/his/manufactor/' + manufactorIds,
    method: 'delete'
  })
}
